//ways of define object
#include <iostream>
using namespace std;
class A{
public:
  A(){cout<<"constructor:A()"<<endl;}
};

int main()
{
  cout<<"A a"<<endl;
  A a;
  cout<<"A a()"<<endl;
  A b();//serve as function declaration
  cout<<"A a = new A"<<endl;
  A* c = new A;
  cout<<"A a = new A()"<<endl;
  A* d = new A();

  delete c;
  delete d;
}
